<?php

include_once 'manialink.php';

class Homepage implements Manialink {

	private $code;

	public function __construct(){
		$this->createCode();
	}

	public function __toString(){
		return $this->code;
	}

	private function createCode(){
		$this->code = '<?xml version="1.0" encoding="utf-8"? standalone="yes">';
		$this->code.= '<manialink version="1" background="1">';
		$this->code.= '<timeout>0</timeout>';
		$this->code.= $this->head();
		$this->code.= '</manialink>';
	}

	private function head(){
		$code = '<quad posn="-160 90 -47" sizen="320 40" halign="left" valign="top" bgcolor="FFFF" />';
		$code.= '<quad posn="-160 90 -48" sizen="320 180" halign="left" valign="top" bgcolor="555F" />';
		$code.= '<quad posn="-160 70 -46.5" sizen="320 1.3" halign="left" valign="bottom" bgcolor="3dFF" />';
		return $code;
	}


}

?>